/* GUI CONVERTED from rcinupd.p (converter v1.75) Tue Apr 10 12:04:21 2001 */
/* rcinupd.p  - SHIPPER CONFIRM - UPDATE INVENTORY MASTER                    */
/* Copyright 1986-2002 QAD Inc., Carpinteria, CA, USA.                       */
/* All rights reserved worldwide.  This is an unpublished work.              */
/* $Revision: 1.4 $                                                        */
/*V8:ConvertMode=Maintenance                                                  */
/* REVISION: 9.1          CREATED: 06/06/00     BY: *L0PR* Kedar Deherkar     */
/* REVISION: 9.1    LAST MODIFIED: 08/12/00     BY: *N0KP* Mark Brown         */
/* $Revision: 1.4 $    BY: Jean Miller    DATE: 03/22/01 ECO: *P008*        */
/******************************************************************************/
/* All patch markers and commented out code have been removed from the source */
/* code below. For all future modifications to this file, any code which is   */
/* no longer required should be deleted and no in-line patch markers should   */
/* be added.  The ECO marker should only be included in the Revision History. */
/******************************************************************************/

define input        parameter l_sod_part      like sod_part no-undo.
define input        parameter l_sod_site      like sod_site no-undo.
define input-output parameter l_multi_ln_shpr like mfc_logical
   no-undo.

define     shared variable qty_all  like sod_qty_all.
define     shared variable qty_chg  like sod_qty_chg.

find first in_mstr where
           in_part = l_sod_part and
           in_site = l_sod_site
exclusive-lock no-error.

if available in_mstr
then do:

   assign
      in_qty_all = in_qty_all - qty_all.

   if l_multi_ln_shpr then
      assign
         in_qty_req      = in_qty_req + qty_chg
         l_multi_ln_shpr = no.

end. /* IF AVAILABLE IN_MSTR THEN */
